import { action, makeObservable, observable } from "mobx";

export type ModeType = "select" | "pose" | "createBone" | "weight";

export class ToolBarStore {
    curMode: ModeType = "select";

    constructor() {
        makeObservable(this, {
            curMode: observable,
            setCurMode: action,
        });
    }

    setCurMode(mode: ModeType) {
        this.curMode = mode;
    }
}

export default new ToolBarStore();
